<!DOCTYPE html>
<html>
<head>
<base href="${basePath}">
<meta charset="UTF-8">
<title>创建商品类型</title>
$!{include("import_js_css.html")}
</head>
<body>
	$!{include("header.html")}
	<div class="menu_all">
		<div class="div_search_result clear">
			<div class="panel-heading panel-result-title">
				<h3 class="panel-title">商品类型</h3>
			</div>
			<div class="panel-form-add">
				<form class="form-horizontal" role="form" action="yueyogaAdmin/addGoodType.jhtml" method="POST">
					<div class="panel-form-layout">	
						<label for="txtGoodsName" class="col-sm-1 control-label">名称</label>
						<div class="col-sm-3">
							<input type="text" class="form-control" name="name"
								id="typeName" value="${name}" required >
						</div>
						<br /> <br /> 
						<label for="inputRemarks" class="col-sm-1 control-label">备注</label>
						<div class="col-sm-9">
							<textarea class="form-control" name="remarks" style="width: 665px;" required id="inputRemarks" rows="3">${remarks}</textarea>
						</div>
						<br> <br><br> <br><br>
						<div class="panel-btn-search">
							<button type="submit" class="btn-ade-default panel-mr">保存</button>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
</body>
</html>
<script type="text/javascript">
	$(function() {
		$("#selProductType").change(
				function() {
					var type = $(this).val();
					if (type == '1') {
						$("#div_datetime").hide();
						$("#div_counts").show();
					} else if (type == '2') {
						$("#div_counts").hide();
						$("#div_datetime").show();
					} else if (type == '3' || type == '4' || type == '5'
							|| type == '6') {
						$("#div_counts").hide();
						$("#div_datetime").hide();
					}
				});
		var msg = '${msg}';
		if (msg != null && msg != '') {
			alert(msg);
			return;
		}
	});
</script>